package com.paic.custserv.utils.redis;

import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

public class RedisClientTest {
	
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Resource rs= new FileSystemResource("D:/custserv/custserv/src/main/resources/spring/spring-redis.xml");  
        BeanFactory factory=new XmlBeanFactory(rs);
		RedisUtils redisUtils = (RedisUtils) factory.getBean("redisUtils");
		RedisObject robj = new RedisObject();
		robj.setKey("abc");
		List<Object> list = new ArrayList<Object>();
		list.add("来了");
		list.add("456");
		list.add("789");
		list.add("101");
		list.add("122");
		robj.setValue(list);
    }
  
}